package com.jy.api.signUpReq.stock;

import com.jy.api.enums.StockInSourceEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by lihu on 2018/2/3.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RecordDetailsSignUpReq {

    @NotNull(message = "参数错误！")
    private String storeId;

    @NotNull(message = "参数错误！")
    private String from;

    @NotNull(message = "参数错误！")
    private String to;

    private String productId;

    private String stockType;

    private String stockSource;

    private String operatorId;

    @NotNull(message = "参数错误！")
    private StockInSourceEnum type;

    @Min(value = 0, message = "最小页数为0")
    private int page;

    @Min(value = 1, message = "最小页数为1")
    private int size;


}
